package org.tongdao.yulong.a_quickstart_byname;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.tongdao.yulong.a_quickstart_byname.bean.Person;

/**
 * @Description: TODO
 * @author: 殷玉龙
 * @date: 2020年09月27日 4:42 下午
 */
public class QuickStartByNameApplication {
  public static void main(String[] args) throws Exception {
    BeanFactory factory = new ClassPathXmlApplicationContext("basic_dl/quickstart-byname.xml");
    Person person = (Person) factory.getBean("person");
    Person person2 = (Person) factory.getBean("person");
    Person person3 = (Person) factory.getBean("person");
    System.out.println(person);
    System.out.println(person2);
    System.out.println(person3);
  }
}
